#Dockerfile for inspect implementation of the bigcodebench evaluation
#Original dockerfiles from the authors' implemenation are here: 
#https://github.com/bigcode-project/bigcodebench/tree/main/Docker

FROM python:3.10-slim
# Starts with a base Python 3.10 slim image


# Updates package list and installs necessary system packages
RUN apt-get update && apt-get install -y \
    git \
    g++ \
    python3-tk \
    zip \
    unzip \
    procps \
    r-base \
    gdal-bin \
    libgdal-dev

# Set GDAL environment variables
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal

RUN pip install --upgrade pip

# Copy requirements and install
COPY requirements.txt /tmp/requirements.txt
# Install packages using the copied requirements file
RUN pip install --timeout 1200 -r /tmp/requirements.txt
#Their run command: RUN pip install -I --timeout 2000 -r https://github.com/bigcode-project/bigcodebench-annotation/releases/download/v0.1.0/requirements.txt